/*
 * @(#)ScriptEngineInfo.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config.runtime;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Web Platform Development Team
 */
public class ScriptEngineInfo {
    /**
     * script file Name
     */
    private List<FileInfo> scriptFileInfo = new ArrayList<FileInfo>();

    private String scriptEngineType = ScriptEngineGlobals.DEFAULT_SCRIPT_ENGINE_TYPE;

    /**
     * Instantiates a new script engine info.
     *
     * @param scriptEngineType the script engine type
     */
    public ScriptEngineInfo(String scriptEngineType) {
        this.scriptEngineType = scriptEngineType;
    }

    /**
     * Gets the script file info.
     *
     * @return the script file info
     */
    public List<FileInfo> getScriptFileInfo() {
        return scriptFileInfo;
    }

    /**
     * Adds the script file info.
     *
     * @param fileInfo the file info
     */
    public void addScriptFileInfo(FileInfo fileInfo) {
        this.scriptFileInfo.add(fileInfo);
    }

    /**
     * Gets the script engine type.
     *
     * @return the script engine type
     */
    public String getScriptEngineType() {
        return scriptEngineType;
    }

    /**
     * Sets the script engine type.
     *
     * @param scriptEngineType the new script engine type
     */
    public void setScriptEngineType(String scriptEngineType) {
        this.scriptEngineType = scriptEngineType;
    }
}
